<%@ page language="java" import="java.util.*,com.hs.core.cache.*" pageEncoding="utf-8"%>
<%
 	String pageStr = (String)request.getAttribute("pagestr");
    List datalist = (List)request.getAttribute("datalist");
    String pagenum = (String)request.getAttribute("pagenum");
	String pagecount = (String)request.getAttribute("pagecount");
	int pagenumInt = Integer.parseInt(pagenum);
	int pagecountInt = Integer.parseInt(pagecount);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%> 
 
<script language=JavaScript>
 //题录信息
 function magaInfo(id)
{
	var pageURL = "<%=basePath %>data/magainfo.do?id=" + id;
	openwindow(pageURL,'800','600','题录信息'); 
}
//详细数据信息
 function auditInfo(id){
	var pageURL = "<%=basePath %>audit/auditlistFrame.do?id=" + id;
	openwindow(pageURL,'1000','800','数据审核'); 
    //window.location.href=pageURL;
 }

</script>
</head>
<body>
        <dl>
        <table border="0" cellspacing="0" cellpadding="0" class="list1">
      <tr>
        <th width="5%">序号</th>  
        <th width="20%">书籍名称</th>
        <th width="15%">出版社</th>
        <th width="15%">作者</th>
        <th width="10%">古籍编辑</th> 
        <th width="10%">出版日期</th> 
        <th width="5%">朝代</th>
        <th width="10%">详细信息</th>  
      </tr>
      
      <% if(null != datalist && datalist.size()>0){
      		for(int i =0;i<datalist.size();i++){
      			Map dm = (Map)datalist.get(i);
       %>
      <tr>
        <td align="center"><%=(pagecountInt*(pagenumInt-1))+i+1%>
        </td> 
        <td><a href="javaScript:magaInfo('<%=dm.get("ID")%>');"><%=dm.get("BOOKNAME") %></a></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.get("PUBLISHHOUSE")+"") %></td>
        <td><%=StringUtilTool.NULL2Blank(dm.get("AUTHOR")+"")%></td>
        <td><%=StringUtilTool.NULL2Blank(dm.get("COMPILE")+"")%></td>  
        <td><%=StringUtilTool.NULL2Blank(dm.get("PUBLISHDATE")+"")%></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.get("DYNASTY")+"")%></td> 
         <td><a href="javaScript:auditInfo('<%=dm.get("ID") %>')">详细信息</td>
        <!-- td><a href="javaScript:openwindow('<%=basePath %>search/filelist.do?id=<%=dm.get("ID")%>','500','300','')">下载</a></td-->  
       </tr>
      
      <%}%>
         <tr>
         <td colspan=8 align=center>
         <%=pageStr %> </td>
         </tr>
      
      <%}else{ %>
      <tr>
        <td align="center" colspan="8"><font color="red">没有符合查询条件的结果</font></td>
      </tr>
      <%}%>
    </table>  
    </dl>
       
</body>
</html>


